
function GM:PlayerLoadout( pl )
	pl:Give( "weapon_physcannon" )
	pl:Give( "weapon_physgun" )
	pl:Give( "keys" )
	pl:Give( "gmod_tool" )
	// Switch to prefered weapon if they have it
	local cl_defaultweapon = pl:GetInfo( "cl_defaultweapon" )
	
	if ( pl:HasWeapon( cl_defaultweapon )  ) then
		pl:SelectWeapon( cl_defaultweapon ) 
	end
	
end

function GM:PlayerSpawn( pl )
	pl:SetNWInt("Stamina", 100) -- change later to max stamina
	pl:SetNWInt("Hunger", 100)
	self.BaseClass.BaseClass:PlayerSpawn( pl )

	// Set the player's speed
	GAMEMODE:SetPlayerSpeed( pl, 250, 500 )

end


function FirstSpawn(ply)
	ply.inventory={}
	ply.inventory.money=100
	startWelfare(ply)
	startHunger(ply)
end
hook.Add( "PlayerInitialSpawn", "playerInitialSpawn", FirstSpawn ); 